﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using FreeSql.DataAnnotations;

namespace shop.Model
{
    /// <summary> 物流账单信息 </summary>
    public class LogisticsBillItem
    {
        /// <summary>  </summary>
        [Column(IsPrimary =true, IsIdentity =true)]
        public int id { set; get; }


        /// <summary> 月份 </summary>
        public DateTime FMonth { set; get; }

        /// <summary> 上传的对账表格文件id </summary>
        public int LogisticsBillExcelId { set; get; }


        /// <summary> 快递单号 </summary>
        [Column(StringLength =50)]
        public string LogisticCode { set; get; }

        /// <summary> 快递公司 </summary>
        public string LogisticsCompany { set; get; }

        /// <summary> 揽收时间 </summary>
        public DateTime? DeliveryTime { set; get; }

        /// <summary> 揽收重量 </summary>
        [Column(Precision = 16, Scale = 6)]
        public decimal DeliveryWeight { set; get; }


        /// <summary> 结算重量 </summary>
        [Column(Precision = 16, Scale = 6)]
        public decimal BillWeight { set; get; }



        /// <summary> 揽收目的地省份 </summary>
        [Column(StringLength =100)]
        public string ReceiveProvince { set; get; }

        /// <summary> 揽收目的地城市 </summary>
        [Column(StringLength = 100)]
        public string ReceiveCity { set; get; }


        /// <summary> 店铺名称 </summary>
        [Column(StringLength = 100)]
        public string ShopName { set; get; }


        /// <summary> 运费 </summary>
        [Column(Precision = 16, Scale = 6)]
        public decimal Freight { set; get; }


        /// <summary> 疫情加收 </summary>
        [Column(Precision = 16, Scale = 6)]
        public decimal Other { set; get; }

        /// <summary> 总费用 </summary>
        [Column(Precision = 16, Scale = 6)]
        public decimal TotalFee { set; get; }


        /// <summary> 加收1 </summary>
        [Column(Precision = 16, Scale = 6)]
        public decimal AddFee1 { set; get; }

        /// <summary> 加收2 </summary>
        [Column(Precision = 16, Scale = 6)]
        public decimal AddFee2 { set; get; }

        /// <summary> 加收3 </summary>
        [Column(Precision = 16, Scale = 6)]
        public decimal AddFee3 { set; get; }

        /// <summary> 加收4 </summary>
        [Column(Precision = 16, Scale = 6)]
        public decimal AddFee4 { set; get; }

        /// <summary> 预付单号钱 </summary>
        [Column(Precision = 16, Scale = 6)]
        public decimal PrevPay { set; get; }

        /// <summary> 需结算运费 </summary>
        [Column(Precision = 16, Scale = 6)]
        public decimal Payable { set; get; }


        /// <summary> 快递老板 </summary>
        [Column(StringLength =100)]
        public string LogiAcct { get; set; }


        /// <summary> 类别 </summary>
        [Column(StringLength =30)]
        public string BillFlag { set; get; }


        /// <summary> 费用明细 </summary>
        [Column(StringLength =500)]
        public string Remarks { set; get; }



        ///// <summary> 面单费 </summary>
        //[Column(Precision = 18, Scale = 4)]
        //public decimal TotalFee { set; get; }


        //运费 疫情加收    总费用 面单费 差额







    }
}
